package com.jeff.tianti.cms.service;

import com.jeff.tianti.cms.entity.GateUser;
import com.jeff.tianti.cms.dao.GateUserDao;
import com.jeff.tianti.cms.dto.GateUserQueryDTO;
import com.jeff.tianti.common.service.CommonService;
import com.jeff.tianti.common.entity.PageModel;
import org.springframework.stereotype.Service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
/**
 * @author xujianfang
 * @desc GateUserService类 
 * @date 2019-07-26
 */
@Service
public class GateUserService extends CommonService< GateUser,String >  {

    @Autowired
    private GateUserDao gateUserDao;

    @Autowired
    public void setGateUserDao(GateUserDao gateUserDao){
      super.setCommonDao(gateUserDao);
    }

    public PageModel<GateUser> queryGateUserPage(GateUserQueryDTO gateUserQueryDTO){
           return this.gateUserDao.queryGateUserPage(gateUserQueryDTO);
    }

    public List<GateUser> queryGateUserList(GateUserQueryDTO gateUserQueryDTO){
           return this.gateUserDao.queryGateUserList(gateUserQueryDTO);
    }

    public GateUser getByMobile(String mobile){
           return this.gateUserDao.findByMobile(mobile);
    }


}